package com.gltc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.gltc.entities.PhotoAuthUpload;

public interface PhotoAuthUploadDao {

	@Select("select * from photo_auth_log where isqualified = 1 order by id desc limit #{page} , #{size}")
	public List<PhotoAuthUpload> getPhotoLogformLog(@Param("page") int page, @Param("size") int size);

	@Select("select count(1) from photo_auth_log where isqualified = 1")
	public int getPhotoLogCount();
	
	@Insert("INSERT INTO photo_auth_log (zfzmhm,photopath,isqualified,upload_photo_time) VALUE (#{zfzmhm},#{photopath},1,#{uploadPhotoTime})")
	public boolean addPhotoLog(@Param("authUpload")PhotoAuthUpload authUpload);
}
